package com.cjzuji.rental.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjzuji.rental.Bean.ApiDetailRequest;
import com.cjzuji.rental.pojo.OrdersDetailDTO;
import com.cjzuji.rental.pojo.Orders;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author bag
 * @version V1.0
 * @date 2025/7/7 21:20
 * @since 1.0
 */

public interface OrderMapper extends BaseMapper<Orders> {
//    xml获取传递的要加@Param("orderId")
    Orders selectByOrderId(String orderId);
    Orders selectById(String id);
    List<OrdersDetailDTO> selectOrderPage(@Param("userName") String userName);
    IPage<OrdersDetailDTO> selectOrderPage(IPage<Orders> page);
    void upDataStatus(@Param("orderId") String orderNo,@Param("actualFiancingAmount") Double actualFiancingAmount,@Param("buyoutAmount") Double buyoutAmount,@Param("monthRepayment") Double monthRepayment,@Param("bondFreeCreditAmt") Double bondFreeCreditAmt,@Param("leaseTerm") String leaseTerm,@Param("deliveryNo") String deliveryNo,@Param("screenRisksAmount") Double screenRisksAmount,@Param("rentStartTime") String rentStartTime);
}
